home *** CD-ROM | disk | FTP | other *** search
/ Aminet 21 / Aminet 21 (1997)(GTI - Schatztruhe)[!][Oct 1997].iso / Aminet / pix / trace / Petanque.lha / petanque / petanque.pov < prev    next >
Text File  |  1997-08-05  |  3KB  |  138 lines

  1. /* Partie de pétangque té cong ! */
  2.  
  3. #include "colors.inc"
  4. #include "textures.inc"
  5. #version 3.0
  6.  
  7. #declare Rainure1 =
  8. union {
  9.     torus { 0.05*sqrt(2), 0.005 translate 0.05*sqrt(2)*y }
  10.     torus { 0.05*sqrt(2), 0.005 translate -0.05*sqrt(2)*y }
  11. }
  12.  
  13. #declare Boule_Amie =
  14. object {
  15.     difference {
  16.         sphere { <0, 0, 0>, 0.1 }
  17.         Rainure1
  18.     }
  19.     texture {Polished_Chrome}
  20. }
  21.  
  22. #declare Boule_Ennemie =
  23. object {
  24.     difference {
  25.         sphere { <0, 0, 0>, 0.1 }
  26.         Rainure1
  27.         object { Rainure1 rotate 90*z }
  28.     }
  29.     texture {Polished_Chrome}
  30. }
  31.  
  32. #declare Cochonnet =
  33. object {
  34.     sphere { <0, 0, 0>, 0.03 }
  35.     texture {
  36.         pigment {
  37.             color rgb <1, 0.4, 0.5>
  38.         }
  39.         normal { bumps 0.7 scale .001 }
  40.     }
  41. }
  42.  
  43. sphere { <0, 0, 0>, 1000 inverse
  44.     texture {
  45.         pigment { color rgb <.35, .3, 1> }
  46.         finish { ambient 1 diffuse 0 }
  47.     }
  48.     texture {
  49.         pigment {
  50.             bozo
  51.             turbulence 0.6
  52.             color_map {
  53.                 [0 color rgbf <0.5, 0.5, 0.5, 0.2>]
  54.                 [0.4 color rgbf <0.8, 0.8, 0.8, 0.4>]
  55.                 [0.55 color rgbf <1, 1, 1, 1> ]
  56.                 [1 color rgbf <1, 1, 1, 1> ]
  57.             }
  58.             scale <200, 50, 200>
  59.         }
  60.         finish { ambient 1 diffuse 0 }
  61.     }
  62. }
  63.  
  64. object { Boule_Amie rotate <25, 30, 15> translate 0.1*y }
  65. object { Boule_Ennemie rotate <75, 11, 12> translate 0.1*y+1.5*x+0.1*z }
  66. object { Boule_Ennemie rotate <15, 23, 200> translate 0.1*y+.8*x+0.3*z }
  67. object { Cochonnet translate 0.035*y+0.4*x+0.1*z }
  68.  
  69. #declare r_init=<50, 20, 10>
  70. #declare r_per_frame=<12, 13, 40>
  71. #declare p_init=.1*y+<-1, 0.6, 0.2>
  72. #declare p_per_frame=0.05*<0.95, -0.3, 0>
  73.  
  74. object { Boule_Amie
  75.   rotate r_init+(r_per_frame)*clock
  76.   translate p_init+(p_per_frame)*clock
  77. }
  78.  
  79. object {  // playground
  80.     plane { y, 0 }
  81.     texture {
  82.         pigment { color rgb <16, 115, 8>/256 }
  83.         normal { bumps 0.4 }
  84.     }
  85.     texture {
  86.         pigment {
  87.             image_map {
  88.                 gif "Terrain.gif"
  89.                 map_type 0
  90.                 interpolate 2
  91.                 once
  92.             }
  93.             rotate 90*x
  94.             scale 10
  95.             translate -5*x-5*z
  96.         }
  97.         normal { bumps 0.4 scale 0.8 }
  98.     }
  99. }
  100.  
  101. union {
  102. object { // Panneau
  103.     box { <-0.7, -0.4, 0>, <0.7, 0.4, 0.15> }
  104.     texture { Tan_Wood rotate <10, 70, 00> scale 2}
  105.     texture {
  106.         pigment {
  107.             image_map {
  108.                 gif "Pancarte.gif"
  109.                 map_type 0
  110.                 interpolate 2
  111.                 filter 0 1
  112.                 filter 1 0.875
  113.                 filter 2 0.75
  114.                 filter 3 0.625
  115.                 filter 4 0.5
  116.                 filter 5 0.375
  117.                 filter 6 0.25
  118.                 filter 7 0.125
  119.             }
  120.             scale <1.4, 0.8, 1>
  121.             translate <-0.7, -0.4, 0>
  122.         }
  123.     }
  124. }
  125. object {
  126.     cylinder { <0, 0.2, 0.25>, <0, -1, 0.25>, 0.1 }
  127.     texture { Tan_Wood }
  128. }
  129. rotate <5, 0, 6>
  130. translate 1*y+4*z
  131. }
  132.  
  133. light_source { 0.2*<-1, 2, -3> color rgb <1, 1, 1>*2 }
  134. light_source { 0.2*<2, 1.5, -2> color rgb <1, 1, 1>*2 }
  135. light_source { <6, 3, 4> color rgb <2, 2, 2> }
  136. camera { location 1*x-1.5*z+0.5*y look_at <0.5, 0, 1> }
  137. //camera { location -4*z look_at <0, 0, 0> }
  138.